from tests.BlogDetailsTest import BlogDetailsTest
from tests.BlogListTest import BlogListTest
from tests.BlogLoginTest import BlogLoginTest
from tests.BlogPostEditingTest import BlogPostEditingTest
from tests.BlogRegTest import BlogRegTest
from common.Utils import BlogDriver
from tests.BlogUserTest import BlogUserTest

if __name__ == "__main__":
    #注册页面
    Reg = BlogRegTest()
    Reg.RegEleTest()
    Reg.RegFailTest()
    Reg.RegSucTest()

    #登录页面
    Login = BlogLoginTest()
    Login.LoginEleTest()
    Login.LoginFailTest()
    Login.LoginSucTest()

    #论坛首页
    List = BlogListTest()
    List.ListEleTest()
    List.ListInforRemPopupWindowTest()
    List.ListPersonalDetailsPopupWindowTest()

    #博客详情页
    Details = BlogDetailsTest()
    Details.DetailsEleTest()
    Details.SendMessagePopupWindowTest()

    #帖子编辑界面
    PostEditing = BlogPostEditingTest()
    PostEditing.PostEditingEleTest()
    PostEditing.PostEditingFailSendTest()
    PostEditing.PostEditingSucSendTest()

    #用户中心界面
    User = BlogUserTest()
    User.UserEleTest()
    User.UserNicknameTest()
    User.UserEmailAddrTest()
    User.UserTelephoneTest()
    User.UserProfileTest()
    User.UserChgPassword()

    BlogDriver.driver.quit()
